# eric7.VirtualEnv.VirtualenvRegistry

Module implementing the virtual environment types registry and associated data structures.

### Global Attributes

None

### Classes

VirtualenvType | Class implementing a container for the metadata of a virtual environment type.
VirtualenvTypeRegistry | Class implementing the virtual environment type registry.

### Functions

None

## VirtualenvType

Class implementing a container for the metadata of a virtual environment type.

### Derived from

None

### Class Attributes

createFunc
defaultExecPathFunc
deleteFunc
name
upgradeFunc
visual_name

### Class Methods

None

### Methods

None

### Static Methods

None

Up

## VirtualenvTypeRegistry

Class implementing the virtual environment type registry.

### Derived from

None

### Class Attributes

None

### Class Methods

None

### Methods

VirtualenvTypeRegistry | Constructor
getCreatableEnvironmentTypes | Public method to get a list of all virtual environment types that posses a creation method/function.
getDeletableEnvironmentTypes | Public method to get a list of all virtual environment types that posses a deletion method/function.
getEnvironmentType | Public method to get a reference to the named virtual environment type.
getEnvironmentTypeNames | Public method to get a list of names of registered virtual environment types.
registerType | Public method to register a new virtual environment type.
unregisterType | Public method to unregister the virtual environment type of the given name.

### Static Methods

None

#### VirtualenvTypeRegistry (Constructor)

VirtualenvTypeRegistry(venvManager)

Constructor

venvManager (VirtualenvManager)
  reference to the virtual environment manager object

#### VirtualenvTypeRegistry.getCreatableEnvironmentTypes

getCreatableEnvironmentTypes()

Public method to get a list of all virtual environment types that posses a creation method/function.

Return:
  list of virtual environment types that posses a creation method/function

Return Type:
  functionType

#### VirtualenvTypeRegistry.getDeletableEnvironmentTypes

getDeletableEnvironmentTypes()

Public method to get a list of all virtual environment types that posses a deletion method/function.

Return:
  list of virtual environment types that posses a deletion method/function

Return Type:
  functionType

#### VirtualenvTypeRegistry.getEnvironmentType

getEnvironmentType(name)

Public method to get a reference to the named virtual environment type.

name (str)
  name of the virtual environment type

Return:
  reference to the environment type data

Return Type:
  VirtualenvType

#### VirtualenvTypeRegistry.getEnvironmentTypeNames

getEnvironmentTypeNames()

Public method to get a list of names of registered virtual environment types.

Return:
  list of tuples of virtual environment type names and their visual name

Return Type:
  list of tuple of (str, str)

#### VirtualenvTypeRegistry.registerType

registerType(venvType)

Public method to register a new virtual environment type.

venvType (VirtualenvType)
  virtual environment data

Raises KeyError:
  raised to indicate an already registered environment name

#### VirtualenvTypeRegistry.unregisterType

unregisterType(name)

Public method to unregister the virtual environment type of the given name.

name (str)
  name of the virtual environment type

Up